//
//  NSString+help.h
//  AudioVideo
//
//  Created by xueshan1 on 2019/9/4.
//  Copyright © 2019 xueshan1. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (help)

- (NSString *)MD5String;

/**
 获取titleLabel的size
 */
- (CGSize)getSizeWithFontSize:(CGFloat)fontSize maxWidth:(CGFloat)maxWidth;
- (CGSize)getSizeWithFontSize:(CGFloat)fontSize maxWidth:(CGFloat)maxWidth maxLine:(NSInteger)maxLine;
- (CGSize)getSizeWithFontSize:(CGFloat)fontSize maxWidth:(CGFloat)maxWidth maxLine:(NSInteger)maxLine lineSpacing:(CGFloat)lineSpacing;

// 获取指定行数文字的size 当文字不够指定行数，返回文字size
- (CGSize)maxLineSizeWithLines:(NSInteger)lines constraintSize:(CGSize)size attributes:(NSDictionary*)dicAttr;
//
- (CGSize)linesSizeWithLines:(NSInteger)lines constraintSize:(CGSize)size attributes:(NSDictionary*)dicAttr;



@end

NS_ASSUME_NONNULL_END
